package cn.hl.hm.service.impl;

import cn.hl.hm.dao.VehicleLengthMapper;
import cn.hl.hm.dao.VehicleMapper;
import cn.hl.hm.entity.VehicleLength;
import cn.hl.hm.service.VehicleLengthService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @description:
 * @Author: xianghan
 * @Date: 2017/10/26 16:42
 **/
@Service
public class VehicleLengthServiceImpl implements VehicleLengthService{
    @Autowired
    private VehicleLengthMapper vehicleLengthDao;
    @Override
    public int deleteByPrimaryKey(Integer id) {
        return vehicleLengthDao.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(VehicleLength record) {
        return vehicleLengthDao.insert(record);
    }

    @Override
    public int insertSelective(VehicleLength record) {
        return vehicleLengthDao.insertSelective(record);
    }

    @Override
    public VehicleLength selectByPrimaryKey(Integer id) {
        return vehicleLengthDao.selectByPrimaryKey(id);
    }

    @Override
    public List<VehicleLength> selectByIds(List<Integer> ids) {
        return vehicleLengthDao.selectByIds(ids);
    }

    @Override
    public int updateByPrimaryKeySelective(VehicleLength record) {
        return vehicleLengthDao.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(VehicleLength record) {
        return vehicleLengthDao.updateByPrimaryKey(record);
    }

    @Override
    public List<VehicleLength> selectVehicleLength() {
        return vehicleLengthDao.selectVehicleLength();
    }

    @Override
    public List<VehicleLength> selectVLByLength(Double length) {
        return vehicleLengthDao.selectVLByLength(length);
    }

}
